home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / iscurchan < prev    next >
Text File  |  2001-03-21  |  538b  |  21 lines

  1. Synopsis:
  2.    $iscurchan(<channel name>)
  3.  
  4. Technical:
  5.    This function returns '1' if the input channel name is the current channel
  6.    on any window connected to the current server.
  7.  
  8. Practical:
  9.    This function was intended to allow more flexibility for testing the
  10.    current channel in an ON hook.
  11.  
  12. Returns:
  13.    '1' if <channel name> is a current channel, else returns '0'
  14.  
  15. Examples:
  16.    Instead of:
  17.       /on ^send_public * {if ([$0] == C) {...} {...}}
  18.    Try doing:
  19.       /on ^send_public * {if (iscurchan($0)) {....} {...}}
  20.  
  21.